import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import layout from "../views/layout.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "/",
    component: layout,
    children: [
      {
        path: "home",
        name: "home",
        component: () => import("../views/home.vue"),
      },
      // 职业分配
      {
        path: "allocation",
        name: "allocation",
        component: () => import("../views/allocation.vue"),
      },
      // 概览
      {
        path: "overview",
        name: "overview",
        component: () => import("../views/overview.vue"),
      },
      // 总数据
      {
        path: "datas",
        name: "datas",
        component: () => import("../views/datas.vue"),
      },
      // 团总数据
      {
        path: "group-datas",
        name: "group-datas",
        component: () => import("../views/group-datas.vue"),
      },
      // 个人数据图表
      {
        path: "player-chart",
        name: "player-chart",
        component: () => import("../views/player-chart.vue"),
      },
      // 数据对比
      {
        path: "pvp",
        name: "pvp",
        component: () => import("../views/pvp.vue"),
      },
      // // 红头文件
      // {
      //   path: "official-documents",
      //   name: "official-documents",
      //   component: () => import("../views/official-documents.vue"),
      // },
      // // 博饼
      // {
      //   path: "mooncake-gambling",
      //   name: "mooncake-gambling",
      //   component: () => import("../views/mooncake-gambling.vue"),
      // },
      // // 词条数值计算器
      // {
      //   path: "entries-computed",
      //   name: "entries-computed",
      //   component: () => import("../views/entries-computed.vue"),
      // },
      // // 科举题库
      // {
      //   path: "imperial",
      //   name: "imperial",
      //   component: () => import("../views/imperial.vue"),
      // }
    ],
  },
];

const router = createRouter({
  history: createWebHashHistory(""),
  routes,
});

export default router;
